﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using PhoneBook.Filters;
using PhoneBook.Models;

namespace PhoneBook.Controllers
{

    public class HomeController : Controller
    {
        public IActionResult Index(string name)
        {
            Test test = new Test();
            Test test2 = new Test();
            Test2 test7=test.test4;
            Test2 test8 = test2.test4;

            //Test2 test3 = Test.test3;
            //Test2 test4 = Test.test3;

            //Test2 test5 = Test.test4;
            //Test2 test6 = Test.test4;
            ViewBag.Name = name;
            int i = 0;
            string nm = "ggg";
            return View();
        }

        public IActionResult Privacy()
        {
            return View();
        }

        [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
        public IActionResult Error()
        {
            return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
        }
    }
}
